package com.naire.modul.${packageName}.service;

import net.common.service.GeneralService;
import com.naire.modul.${packageName}.dao.${className}Dao;
import com.naire.modul.${packageName}.dao.impl.${className}DaoImpl;
import com.naire.modul.${packageName}.vo.${className}Vo;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class ${className}EditorService extends GeneralService {

	private ${className}Vo bean;

	@Override
	public void execute() throws Exception {
		${className}Dao dao = new ${className}DaoImpl();
		if (bean.get${p_column}() != null) {
			dao.update(bean);
		} else {
			bean.setFlag(0);
			dao.insert(bean);
		}
	}

	public void setBean(${className}Vo bean) {
		this.bean = bean;
	}

}
